<%= form_for(Settings::General.new,
             url: admin_settings_general_settings_path,
             html: { data: { action: "submit->config#updateConfigurationSettings" } }) do |f| %>
  <details class="crayons-card">
    <summary class="crayons-subtitle-2 p-6">Meta Keywords</summary>
    <div class="p-6 pt-0">
      <fieldset class="grid gap-4">
        <%= f.fields_for :meta_keywords do |meta_keywords_field| %>
          <% Settings::General.meta_keywords.each do |area, keywords| %>
            <div class="crayons-field">
              <%= admin_config_label area.to_s %>
              <p class="crayons-field__description">
              <%= area.capitalize %><%= "page" unless area == "default" %> keywords
              </p>
              <%= meta_keywords_field.text_field area,
                                                 class: "crayons-textfield",
                                                 value: Settings::General.meta_keywords[area],
                                                 placeholder: Constants::Settings::General.details[:meta_keywords][:placeholder] %>
            </div>
          <% end %>
        <% end %>
      </fieldset>
      <%= render "update_setting_button", f: f %>
    </div>
  </details>
<% end %>
